package com.itheima.service.impl;

import com.itheima.dao.OrderDao;
import com.itheima.pojo.Order;
import com.itheima.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * (Order)表服务实现类
 *
 * @author guobuyi
 * @since 2021-01-20 16:46:46
 */
@Service
public class OrderServiceImpl implements OrderService {
    @Autowired
    private OrderDao orderDao;

    /**
     * @Author: guodong
     * @Date: 20:01 2021/1/21
     * @Parms [id]
     * @ReturnType: com.itheima.pojo.Order
     * @Description: 根据userId查询订单
    */
    @Override
    public Order findOrderByUserId(Integer id) {
        return orderDao.findOrderByUserId(id);
    }
}